package com.xxrl.shop.repository;

import com.xxrl.shop.domain.ProductSimilar;
import org.springframework.data.mongodb.repository.MongoRepository;


/**
 * @author mis
 */
public interface ProductSimilarRepository extends MongoRepository<ProductSimilar,String> {

    /**
     * 查询商品的相似商品
     * @param productId 商品id
     * @return 数据
     */
    ProductSimilar findTopByProductId(Integer productId);
}
